package com.foreknow.demo10;

/**
 * 字符串String以及常用的方法
 * String concat(String str)：将指定字符串连接到此字符串的结尾
 */
public class StringDemo {
    public static void main(String[] args) {
        String s = "f";
        String s_new = s.concat("a");
        System.out.println(s_new);
        System.out.println(Integer.parseInt(s_new,16));

        String reg = "aa bb cc dd";
        String[] s1 = reg.split(" ");
        for (String s_tmp : s1) {
            System.out.print(s_tmp);
        }
    }
}
